﻿using System;
using System.Windows;
using System.Windows.Navigation;

namespace hr_1.View
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>

    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void frame1_Navigated(object sender, NavigationEventArgs e)
        {

        }

        //__________________Employee____________________________________
        private void Add_new_emp_Click(object sender, RoutedEventArgs e)
        {
            frame1.Source = new Uri("Employee_add_new_employee.xaml", UriKind.Relative);
        }
        private void Show_emp_Click(object sender, RoutedEventArgs e)
        {
            frame1.Source = new Uri("Show_employee.xaml", UriKind.Relative);
        }

        //__________________Position_________________________________
        private void Show_pos_Click(object sender, RoutedEventArgs e)
        {
            frame1.Source = new Uri("Position_show_position.xaml", UriKind.Relative);
        }

        //__________________Common_______________________________
        private void Exit_Click(object sender, RoutedEventArgs e)
        {
            Application.Current.Shutdown();
        }
    }

}
